<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TemplateList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.TemplateList" %>
<div class="frame">
<div style="text-align:center;height:20px;width:600px">
    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
</div>
<br />
<asp:GridView runat="server" ID="gvTemplate" AutoGenerateColumns="false" >
       <Columns>
        <asp:TemplateField HeaderText="Name">
            <ItemTemplate>
                <asp:Label runat="server" ID="lblName" Text='<%#DataBinder.Eval(Container,"DataItem.Name") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Description">
            <ItemTemplate>
                <asp:Label runat="server" ID="lblDescription" Text='<%#DataBinder.Eval(Container,"DataItem.Description") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:ImageButton runat="server" ID="ibUpdate" CommandArgument='<%#DataBinder.Eval(Container,"DataItem.ID")%>' ImageUrl="~/Admin/Images/edit.gif" OnClick="ibUpdate_Click" />
                <asp:ImageButton runat="server" ID="ibEdit" OnClientClick="confirm('Are you sure to delete this template')" CommandArgument='<%#DataBinder.Eval(Container ,"DataItem.ID")%>' ImageUrl="~/Admin/Images/delete.gif" OnClick="ibDelete_Click"/>
            </ItemTemplate>
        </asp:TemplateField>
        
       </Columns>
</asp:GridView>
</div>